<?php
include_once("../module/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'activity'");

//用来判断当前系统属于什么板块
$system_part = $plate['mid'];

$nid = $_REQUEST['nid'];

$info=select_one_line_all_items($table_Prefix."register","nid = '$nid'");

$activity_info=select_one_line_all_items($table_Prefix."activity","id = '$info[activity_id]'");
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_ . '/controlbase/module/head.php'); ?>

</head>

<body>

<div id="topbar"><?php include ROOT_PATH_ . '/controlbase/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_ . '/controlbase/module/sidebar.php'; ?>
        </div>


<div id="content" class="layui-form">
	<div class="box member-add-box layui-form">
<h1>活动"<?php echo $activity_info['theme'];?>"报名人详情</h1>

<form id="add-employee-form" method="post" action="detail-edit-function-register.php?nav-itemed=activity" enctype="multipart/form-data" class="layui-form">

    <input type="hidden" name="nid" value="<?php echo $info['nid']?>" />
    <input type="hidden" name="activity_id" value="<?php echo $activity_info['id']?>" />
    
    
    <div class="layui-form-item">
        <label class="layui-form-label">报名人名字</label>
        <div class="layui-input-block">
            <input type="text" name="ai_name" lay-verify="required" placeholder="请输入报名人名字" autocomplete="off" class="layui-input" value="<?php echo $info['name'];?>">
        </div>
    </div>
   
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
        	<input type="text" name="ai_phone"  placeholder="请输入联系电话" autocomplete="off" class="layui-input" value="<?php echo $info['phone'];?>">
        </div>
    </div>
    
    
    <div class="layui-form-item">
            <label class="layui-form-label">报名时间</label>
            <div class="layui-input-block">

                <input type="text" name="ai_date" id="date" autocomplete="off" class="layui-input"  value="<?php echo $info['date'] ==  '0' ? '' : date("Y-m-d H:i:s",$info['date']);?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
				<input type="radio" name="ai_status" value="1" title="通过" <?php if($info['status'] == '1'){ echo 'checked="checked"';}?>>
      			<input type="radio" name="ai_status" value="2" title="未通过" <?php if($info['status'] == '2'){ echo 'checked="checked"';}?>>
      			<input type="radio" name="ai_status" value="0" title="待审核" <?php if($info['status'] == '0'){ echo 'checked="checked"';}?>>
            
            </div>
        </div>
        
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="ai_remark" placeholder="备注" class="layui-textarea"> <?php echo $info['remark'];?></textarea>
            </div>
        </div>

        <div class="layui-form-item">
           <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
           </div>
        </div>
</form>
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include ROOT_PATH_ . "/controller/common/modules/footer.php"; ?> </body>
</html>
